<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
  <!-- Tell the browser to be responsive to screen width -->
  <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  <!-- Bootstrap 3.3.6 -->
  <link rel="stylesheet" href="/static/adminlte/bootstrap/css/bootstrap.min.css">
  <!-- Font Awesome -->
  <link rel="stylesheet" href="/static/css/font-awesome.min.css">
  <!-- Ionicons -->
  <link rel="stylesheet" type="text/css" href="/static/css/ionicons.min.css" />
  <!-- Theme style -->
  <link rel="stylesheet" href="/static/adminlte/dist/css/AdminLTE.min.css">
		<title></title>
	</head>
	<body>

<section class="content">
      <div class="row">
		<div class="col-xs-12">
		          <div class="nav-tabs-custom">
		            <ul class="nav nav-tabs">
		              <li><a href="{:url('User/index')}">用户管理</a></li>
		              <li><a href="{:url('User/add')}">添加用户</a></li>
		              <li class="active"><a>用户编辑</a></li>
		            </ul>
		            <div class="tab-content">
							<form id="myform" class="form-horizontal" action="{:url('User/update')}" method="post">
			                    <div class="form-group">
			                        <label class="col-sm-2 control-label">用户名</label>
			                        <div class="col-sm-10">
			                            <input type="text" name="username" value="{$user.username}"  placeholder="请输入用户名" class="form-control">
			                        </div>
			                    </div>
			                    <div class="form-group">
			                        <label class="col-sm-2 control-label">密码</label>
			                        <div class="col-sm-10">
			                            <input type="password" name="password" value="" placeholder="请输入密码" class="form-control">
			                        </div>
			                    </div>
			                    <div class="form-group">
			                        <label class="col-sm-2 control-label">重复密码</label>
			                        <div class="col-sm-10">
			                            <input type="password" name="confirm_password" value="" placeholder="请再次输入密码" class="form-control">
			                        </div>
			                    </div>
			                    <div class="form-group">
			                        <label class="col-sm-2 control-label">手机</label>
			                        <div class="col-sm-10">
			                            <input type="text" name="mobile" value="{$user.mobile}" placeholder="（选填）请输入手机" class="form-control">
			                        </div>
			                    </div>
			                    <div class="form-group">
			                        <label class="col-sm-2 control-label">邮箱</label>
			                        <div class="col-sm-10">
			                            <input type="text" name="email" value="{$user.email}" placeholder="（选填）请输入邮箱" class="form-control">
			                        </div>
			                    </div>
				                <div class="form-group">
				                	<label class="col-sm-2 control-label">状态</label>
				                	<div class="col-sm-10">
										<label class="radio-inline">
										  <input type="radio" name="status" value="1" {if condition="$user.status==1"} checked="checked"{/if}> 启动
										</label>
										<label class="radio-inline">
										  <input type="radio" name="status" value="0" {if condition="$user.status==0"} checked="checked"{/if}> 禁止
										</label>				                		
				                	</div>                            
				                </div>
			                    <div class="form-group">
				                	<div class="col-sm-offset-2 col-sm-10">
				                		<input type="hidden" name="id" value="{$user.id}">
					                	<button type="button" id="sub" class="btn btn-primary">提交</button>
				                	</div>
			                    </div>
			                </form>		
	              
		            </div><!-- /.tab-content -->
		          </div><!-- /.nav-tabs-custom -->
		</div><!--/.row-->
      </div>
  </section>
<!-- jQuery 2.2.3 -->
<script src="/static/adminlte/plugins/jQuery/jquery-2.2.3.min.js"></script>
<script src="/static/layer/layer.js" type="text/javascript" charset="utf-8"></script>
<!-- Bootstrap 3.3.6 -->
<script src="/static/adminlte/bootstrap/js/bootstrap.min.js"></script>
<script src="/static/js/admin.js" type="text/javascript" charset="utf-8"></script>
	</body>
</html>
